//
//  UploadInfo.m
//  parkour-photomap-ib
//
//  Created by Ed Mancebo on 4/6/11.
//  Copyright 2011 Personal. All rights reserved.
//

#import "UploadInfo.h"


@implementation UploadInfo

@synthesize image, title, desc, tags, coord;

- (NSString *)description {
	return [NSString stringWithFormat:@"image:%@ title:%@ desc:%@ tags:%@ coord:(%f, %f)",
			[image description], title, desc, [tags description], coord.latitude, coord.longitude];
}

- (NSString*) getTagString {
	NSMutableString *str = [[NSMutableString alloc] init];
	for (NSString *tag in tags) {
		if ([str length] > 0) {
			[str appendFormat:@"%@", @" "];
		}
		[str appendFormat:@"%@", tag];
	}
	
	return [str autorelease];
}

@end
